const components = require.context('../components/', true, /\.vue$/)
const pages = {}
components.keys().map(value => components(value))
  .filter(value => value.default).forEach((value) => {
    pages[value.default.name] = value.default
  })
export default pages
